#include "Object.h"

class GameScene;

class Bullet:public MoveObject
{
public:
    Bullet(float x, float y, int w,int h,Angle angle, float speed, GameScene* scene, bool isEnemyBullet = true);
    void Update(float dt);
    void Render();
    bool isEnemyBullet_;
private:
    void Move(float dt) override;
    //碰撞判定:子弹
    void checkBulletWithTerrain();
    void checkBulletWithBullet();
    void checkBulletWithTank();

    GameScene* scene_;
};